package com.wayhome.srpingbootmybatis.placeCloud.controller;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;
import com.wayhome.srpingbootmybatis.placeCloud.dto.ImportPlaceData;
import org.apache.poi.ddf.EscherBitmapBlip;

import java.util.ArrayList;
import java.util.List;

public class ImportPlaceListener extends AnalysisEventListener<ImportPlaceData> {

    private List<ImportPlaceData> list = new ArrayList<>();

    public List<ImportPlaceData> getList() {
        return list;
    }

    @Override
    public void invoke(ImportPlaceData importPlaceData, AnalysisContext analysisContext) {
        list.add(importPlaceData);
    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {
        System.out.println("完事儿...............");
    }

}
